package chapter05;

import java.math.BigInteger;

public class Test06_bigInterge {
    public static void main(String[] args) {
        BigInteger bigInteger = new BigInteger("1234567891");
        BigInteger bigInteger1 = new BigInteger("45678912345");
        //加法
        BigInteger add = bigInteger.add(bigInteger1);
        System.out.println(add);
        //减法
        BigInteger subtract = bigInteger.subtract(bigInteger1);
        System.out.println(subtract);
        //乘法
        BigInteger multiply = bigInteger.multiply(bigInteger1);
        System.out.println(multiply);
        //除法
        BigInteger divide = bigInteger.divide(bigInteger1);
        System.out.println(divide);
    }
}
